![]() |
PATH![]() |
The com.apple.mrj.MRJQuitHandler interface contains one method, handleQuit , which is called when the Finder requests that the application quit.
public void handleQuit ();
This application-defined method is called when the Finder requests that the application quit. For example, this occurs when the user selects the Shutdown menu item in the Finder. Typically, your method should perform any necessary cleanup (and possibly ask if the user really wants to quit) and then call the method
java.lang.System.exit()
. You must register the method name by calling the
registerQuitHandler
method
registerQuitHandler
when initializing the application. The handleQuit method is only useful if you have packaged your Java application using JBindery.